package com.example.infrastructure.persistence.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.infrastructure.common.BasePO;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 健康资讯表 PO
 *
 * @author wangal
 * @since 2025-07-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("health_articles")
@Schema(name = "HealthArticles", description = "健康资讯表")
public class HealthArticles extends BasePO {

    private static final long serialVersionUID = 1L;

    @Schema(description = "文章标题")
    @TableField("title")
    private String title;

    @Schema(description = "文章摘要")
    @TableField("summary")
    private String summary;

    @Schema(description = "文章内容")
    @TableField("content")
    private String content;

    @Schema(description = "封面图片")
    @TableField("cover_image")
    private String coverImage;

    @Schema(description = "作者")
    @TableField("author")
    private String author;

    @Schema(description = "分类")
    @TableField("category")
    private String category;

    @Schema(description = "标签，多个用逗号分隔")
    @TableField("tags")
    private String tags;

    @Schema(description = "浏览次数")
    @TableField("view_count")
    private Integer viewCount;

    @Schema(description = "点赞次数")
    @TableField("like_count")
    private Integer likeCount;

    @Schema(description = "是否推荐：0否，1是")
    @TableField("is_recommend")
    private Byte isRecommend;

    @Schema(description = "发布时间")
    @TableField("publish_time")
    private LocalDateTime publishTime;

    @Schema(description = "状态：0草稿，1已发布，2已下线")
    @TableField("status")
    private Byte status;

    @Schema(description = "租户编号")
    @TableField("tenant_id")
    private Long tenantId;


}